package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName image_tag
 */
@TableName(value ="image_tag")
@NoArgsConstructor
@Data
public class ImageTag implements Serializable {

    @TableField("image_id")
    private String imageId;

    @TableField("tag_id")
    private Long tagId;

    @TableField("is_belong_class")
    private boolean isBelongClass;

    @Serial
    private static final long serialVersionUID = 1L;

    public ImageTag(String imageId, Long tagId,boolean isBelongClass) {
        this.imageId = imageId;
        this.tagId = tagId;
        this.isBelongClass = isBelongClass;
    }
}